<%@ include file="include.jsp" %>

<!-- start main page -->
<div id="content-wrap">
<div id="main"><br />
<div style="text-align: left;">
<h3>Editing ${drug.name} - Unique ID number: ${drug.id}</h3>

<form action="editDrugComplete.html" method="post">

Drug name: <br/><input type="text" name="name" size="40" maxlength="250" value="${drug.name}" /><br/><form:errors path="name" cssClass="error" />
<br />
<br />
Class of Drug: <br/><input type="text" name="classOfDrug" size="40" maxlength="250" value="${drug.classOfDrug}" /><br/><form:errors path="classOfDrug" cssClass="error" />
<br />
<br />
Why is this medication prescribed: <br/><textarea name="whyIsThisMedicationPrescribed">${drug.whyIsThisMedicationPrescribed}</textarea><form:errors path="whyIsThisMedicationPrescribed" cssClass="error" />
<br/><br />
Other Brand Names: <br/><input type="text" name="otherBrands" size="40" maxlength="500" value="${drug.otherBrands}" /><br/><form:errors path="otherBrands" cssClass="error" />
<br />
<br />
Side Effects: <br/><input type="text" name="sideEffects" size="40" maxlength="500" value="${drug.sideEffects}" /><br/><form:errors path="sideEffects" cssClass="error" />
<br />
<br />
Warnings: <br/><textarea name="warnings">${drug.warnings}</textarea><form:errors path="warnings" cssClass="error" />
<br /><br/>
Treats: <br/><input type="text" name="treats" size="40" maxlength="500" value= "${drug.treats}"  /><br/><form:errors path="treats" cssClass="error" />
<br />
<br />
<input type="submit" name="submit" value="Submit">
<br />
<br />
</form>
<h3><a href="admin.html">Return to Administrator Home Page</a></h3>


</div>

<p></p>
<br />
</div>

<div id="sidebar">
<div style="text-align: left;"></div>
<h3 style="text-align: left;"><img style="width: 225px; height: 129px;" alt="" src="images/bluepill.jpg" /><br /></h3><br /></div>
</div>









<!-- end main page -->
